import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/cost/park/refundCost/page',
    method: 'get',
    params: query
  })
}
// 明细
export function getDetail(id) {
  return request({
    url: '/cost/park/refundCost/byId',
    method: 'get',
    params: {
      id
    }
  })
}

//原订单信息
export function weborder(id) {
  return request({
    url: '/order/remote/order/id',
    method: 'get',
    params: {
      id
    }
  })
}
//通过订单id查询房屋基础信息
export function weborderproject(id, serviceType) {
  return request({
    url: '/order/weborderproject/getProject',
    method: 'get',
    params: {
      id: id,
      serviceType: serviceType
    }
  })
}
//退款申请驳回
export function rejected(id, approvalRefundReasons, approvalRemarks) {
  return request({
    url: '/cost/park/refundCost/rejected',
    method: 'get',
    params: {
      id,
      approvalRefundReasons,
      approvalRemarks
    }
  })
}
//approved
export function approved(id, approvalRefundReasons, approvalRemarks, realAmount) {
  return request({
    url: '/cost/park/refundCost/approved',
    method: 'get',
    params: {
      id,
      approvalRefundReasons,
      approvalRemarks,
      realAmount
    }
  })
}
